package com.nus.fellowmark.modules.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nus.fellowmark.common.utils.PageUtils;
import com.nus.fellowmark.entity.SysUserRoleMappingEntity;
import com.nus.fellowmark.modules.rbac.dto.UserRoleDTO;
import com.nus.fellowmark.modules.rbac.enums.RoleEnum;

import java.util.List;
import java.util.Map;

/**
 * User-Role Relationship Table
 *
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-11  
 */
public interface SysUserRoleMappingService extends IService<SysUserRoleMappingEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean addUserAsRole(Integer userId, RoleEnum roleEnum);

    Boolean save(UserRoleDTO userRoleDTO);

    Boolean updateById(UserRoleDTO userRoleDTO);

    void removeUserbyId(List<Integer> userIds);
}

